<template>
  <div>
    <div class="search_body">
      <dl v-for="item in SearchBodyList" :key="item.id" @click="ProduceDeail(item.id)">
        <dt>
          <img :src="item.list_pic_url" alt="" />
        </dt>
        <dd>{{ item.name }}</dd>
        <dd class="d2">{{ item.retail_price | RMBformat }}</dd>
      </dl>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  props: ["SearchBodyList"],
  methods : {
    ProduceDeail(val){
      this.$router.push("/produceDeail?id="+val)
    }
  }
};
</script>
 
<style lang = "less" scoped>
.search_body {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 0.053333rem;
  padding-bottom: .066667rem;
  dl {
    width: 48%;
    margin: 0 0.026667rem;
    margin-top: 0.093333rem;
    background-color: #fff;
    dt {
      img {
        width: 100%;
      }
    }
    dd {
      text-align: center;
      margin-bottom: 0.166667rem;
    }
    .d2 {
      color: brown;
    }
  }
}
</style>